package ru.study.thinkin.chapter14;

public class Coffee {
	private static long counter = 1;
	private final long id = counter++;
	@Override
	public String toString() {	
		return  getClass().getSimpleName()+" id="+id;
	}	
}

class Latte extends Coffee{}
class Americano extends Coffee{}
class Cappuchino extends Coffee{}
